import { createStore, Store, useStore as baseUseStore } from 'vuex'
import layout from '/@/store/module/layout'
import user from '/@/store/module/user'

export const store = createStore<any>({
    modules: {
        layout,
        user
    }
})

export function useStore(): Store<any> {
    return baseUseStore()
}
